<?php

class ModelAndView {

	var $_model;
	var $_view;
	
	function ModelAndView() {
		$this->_model = array();
	}
	
	function getModel() {
		return $this->_model;
	}
	
	function setModel($model_arg) {
		$this->_model[0] = $model_arg;
	}

	function addToModel($key, $model_value) {
		$this->_model[$key]=$model_value;
	}

	function setView($view) {
		$this->_view = $view;
	}
	
	function getView() {
		return $this->_view;
	}
}

?>